package com.demo.security.access.intercept;

import java.util.Collection;

import org.springframework.security.core.context.SecurityContext;

import com.demo.security.access.LogicAttribute;

/**
 * 拦截调用逻辑令牌对象 对拦截对象，调用逻辑进行封装
 * 
 * @author ryuu.kk
 */
public class InterceptorLogicToken implements java.io.Serializable {

	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = 1L;
	
	private final SecurityContext securityContext;
	private final Collection<LogicAttribute> attr;
	private final Object logicObject;

	public InterceptorLogicToken(SecurityContext securityContext, Collection<LogicAttribute> attr, Object logicObject) {
		this.securityContext = securityContext;
		this.attr = attr;
		this.logicObject = logicObject;
	}

	public SecurityContext getSecurityContext() {
		return securityContext;
	}

	public Collection<LogicAttribute> getAttr() {
		return attr;
	}

	public Object getLogicObject() {
		return logicObject;
	}
}